package com.lemzdo.community.service;

import com.lemzdo.community.dto.CommentUserDTO;
import com.lemzdo.community.enums.CommentTypeEnum;
import com.lemzdo.community.model.Comment;
import com.lemzdo.community.model.Post;

import java.util.List;

public interface CommentService {

    void insert(Comment comment);

    List<CommentUserDTO> selectAllByPostId(Integer postId, CommentTypeEnum typeEnum);

    Post getPostByCommentId(Integer commentId);
}